﻿using System;
using System.ComponentModel;
using System.Reflection;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdStreamBuf : OdRxObject
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdStreamBuf(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdStreamBuf_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdStreamBuf obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdStreamBuf()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdStreamBuf(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public OdStreamBuf() : this(GlobalsPINVOKE.new_OdStreamBuf(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
		{
			MemoryTransaction currentTransaction = MemoryManager.GetMemoryManager().GetCurrentTransaction();
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdStreamBuf(this.swigCPtr.Handle, true));
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			this.SwigDirectorConnect();
		}

		public new static OdStreamBuf cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdStreamBuf_cast(OdRxObject.getCPtr(pObj));
			OdStreamBuf result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(GlobalsPINVOKE.OdStreamBuf_desc(), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("isA", OdStreamBuf.swigMethodTypes1) ? GlobalsPINVOKE.OdStreamBuf_isASwigExplicitOdStreamBuf(this.swigCPtr) : GlobalsPINVOKE.OdStreamBuf_isA(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("queryX", OdStreamBuf.swigMethodTypes0) ? GlobalsPINVOKE.OdStreamBuf_queryXSwigExplicitOdStreamBuf(this.swigCPtr, OdRxClass.getCPtr(protocolClass)) : GlobalsPINVOKE.OdStreamBuf_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdStreamBuf createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdStreamBuf_createObject();
			OdStreamBuf result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual string fileName()
		{
			string result = this.SwigDerivedClassHasMethod("fileName", OdStreamBuf.swigMethodTypes2) ? GlobalsPINVOKE.OdStreamBuf_fileNameSwigExplicitOdStreamBuf(this.swigCPtr) : GlobalsPINVOKE.OdStreamBuf_fileName(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isEof()
		{
			bool result = this.SwigDerivedClassHasMethod("isEof", OdStreamBuf.swigMethodTypes3) ? GlobalsPINVOKE.OdStreamBuf_isEofSwigExplicitOdStreamBuf(this.swigCPtr) : GlobalsPINVOKE.OdStreamBuf_isEof(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual ulong tell()
		{
			ulong result = this.SwigDerivedClassHasMethod("tell", OdStreamBuf.swigMethodTypes4) ? GlobalsPINVOKE.OdStreamBuf_tellSwigExplicitOdStreamBuf(this.swigCPtr) : GlobalsPINVOKE.OdStreamBuf_tell(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual ulong length()
		{
			ulong result = this.SwigDerivedClassHasMethod("length", OdStreamBuf.swigMethodTypes5) ? GlobalsPINVOKE.OdStreamBuf_lengthSwigExplicitOdStreamBuf(this.swigCPtr) : GlobalsPINVOKE.OdStreamBuf_length(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void truncate()
		{
			if (this.SwigDerivedClassHasMethod("truncate", OdStreamBuf.swigMethodTypes6))
			{
				GlobalsPINVOKE.OdStreamBuf_truncateSwigExplicitOdStreamBuf(this.swigCPtr);
			}
			else
			{
				GlobalsPINVOKE.OdStreamBuf_truncate(this.swigCPtr);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void rewind()
		{
			if (this.SwigDerivedClassHasMethod("rewind", OdStreamBuf.swigMethodTypes7))
			{
				GlobalsPINVOKE.OdStreamBuf_rewindSwigExplicitOdStreamBuf(this.swigCPtr);
			}
			else
			{
				GlobalsPINVOKE.OdStreamBuf_rewind(this.swigCPtr);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual ulong seek(long offset, FilerSeekType seekType)
		{
			ulong result = this.SwigDerivedClassHasMethod("seek", OdStreamBuf.swigMethodTypes8) ? GlobalsPINVOKE.OdStreamBuf_seekSwigExplicitOdStreamBuf(this.swigCPtr, offset, (int)seekType) : GlobalsPINVOKE.OdStreamBuf_seek(this.swigCPtr, offset, (int)seekType);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual byte getByte()
		{
			byte result = this.SwigDerivedClassHasMethod("getByte", OdStreamBuf.swigMethodTypes9) ? GlobalsPINVOKE.OdStreamBuf_getByteSwigExplicitOdStreamBuf(this.swigCPtr) : GlobalsPINVOKE.OdStreamBuf_getByte(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private void getBytes(IntPtr buffer, uint numBytes)
		{
			if (this.SwigDerivedClassHasMethod("getBytes", OdStreamBuf.swigMethodTypes10))
			{
				GlobalsPINVOKE.OdStreamBuf_getBytesSwigExplicitOdStreamBuf(this.swigCPtr, buffer, numBytes);
			}
			else
			{
				GlobalsPINVOKE.OdStreamBuf_getBytes(this.swigCPtr, buffer, numBytes);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void putByte(byte value)
		{
			if (this.SwigDerivedClassHasMethod("putByte", OdStreamBuf.swigMethodTypes11))
			{
				GlobalsPINVOKE.OdStreamBuf_putByteSwigExplicitOdStreamBuf(this.swigCPtr, value);
			}
			else
			{
				GlobalsPINVOKE.OdStreamBuf_putByte(this.swigCPtr, value);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void putBytes(byte[] buffer)
		{
			IntPtr intPtr = Teigha.Core.Helpers.MarshalbyteFixedArray(buffer);
			try
			{
				if (this.SwigDerivedClassHasMethod("putBytes", OdStreamBuf.swigMethodTypes12))
				{
					GlobalsPINVOKE.OdStreamBuf_putBytesSwigExplicitOdStreamBuf(this.swigCPtr, intPtr);
				}
				else
				{
					GlobalsPINVOKE.OdStreamBuf_putBytes(this.swigCPtr, intPtr);
				}
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
			finally
			{
				Marshal.FreeCoTaskMem(intPtr);
			}
		}

		public virtual void copyDataTo(OdStreamBuf pDestination, ulong sourceStart, ulong sourceEnd)
		{
			if (this.SwigDerivedClassHasMethod("copyDataTo", OdStreamBuf.swigMethodTypes13))
			{
				GlobalsPINVOKE.OdStreamBuf_copyDataToSwigExplicitOdStreamBuf__SWIG_0(this.swigCPtr, OdStreamBuf.getCPtr(pDestination), sourceStart, sourceEnd);
			}
			else
			{
				GlobalsPINVOKE.OdStreamBuf_copyDataTo__SWIG_0(this.swigCPtr, OdStreamBuf.getCPtr(pDestination), sourceStart, sourceEnd);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void copyDataTo(OdStreamBuf pDestination, ulong sourceStart)
		{
			if (this.SwigDerivedClassHasMethod("copyDataTo", OdStreamBuf.swigMethodTypes14))
			{
				GlobalsPINVOKE.OdStreamBuf_copyDataToSwigExplicitOdStreamBuf__SWIG_1(this.swigCPtr, OdStreamBuf.getCPtr(pDestination), sourceStart);
			}
			else
			{
				GlobalsPINVOKE.OdStreamBuf_copyDataTo__SWIG_1(this.swigCPtr, OdStreamBuf.getCPtr(pDestination), sourceStart);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void copyDataTo(OdStreamBuf pDestination)
		{
			if (this.SwigDerivedClassHasMethod("copyDataTo", OdStreamBuf.swigMethodTypes15))
			{
				GlobalsPINVOKE.OdStreamBuf_copyDataToSwigExplicitOdStreamBuf__SWIG_2(this.swigCPtr, OdStreamBuf.getCPtr(pDestination));
			}
			else
			{
				GlobalsPINVOKE.OdStreamBuf_copyDataTo__SWIG_2(this.swigCPtr, OdStreamBuf.getCPtr(pDestination));
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual uint getShareMode()
		{
			uint result = this.SwigDerivedClassHasMethod("getShareMode", OdStreamBuf.swigMethodTypes16) ? GlobalsPINVOKE.OdStreamBuf_getShareModeSwigExplicitOdStreamBuf(this.swigCPtr) : GlobalsPINVOKE.OdStreamBuf_getShareMode(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual byte[] getBytesByNum(uint numBytes)
		{
			byte[] result = Teigha.Core.Helpers.UnMarshalbyteFixedArray(GlobalsPINVOKE.OdStreamBuf_getBytesByNum(this.swigCPtr, numBytes));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private void SwigDirectorConnect()
		{
			if (this.SwigDerivedClassHasMethod("queryX", OdStreamBuf.swigMethodTypes0))
			{
				this.swigDelegate0 = new OdStreamBuf.SwigDelegateOdStreamBuf_0(this.SwigDirectorqueryX);
			}
			if (this.SwigDerivedClassHasMethod("isA", OdStreamBuf.swigMethodTypes1))
			{
				this.swigDelegate1 = new OdStreamBuf.SwigDelegateOdStreamBuf_1(this.SwigDirectorisA);
			}
			if (this.SwigDerivedClassHasMethod("fileName", OdStreamBuf.swigMethodTypes2))
			{
				this.swigDelegate2 = new OdStreamBuf.SwigDelegateOdStreamBuf_2(this.SwigDirectorfileName);
			}
			if (this.SwigDerivedClassHasMethod("isEof", OdStreamBuf.swigMethodTypes3))
			{
				this.swigDelegate3 = new OdStreamBuf.SwigDelegateOdStreamBuf_3(this.SwigDirectorisEof);
			}
			if (this.SwigDerivedClassHasMethod("tell", OdStreamBuf.swigMethodTypes4))
			{
				this.swigDelegate4 = new OdStreamBuf.SwigDelegateOdStreamBuf_4(this.SwigDirectortell);
			}
			if (this.SwigDerivedClassHasMethod("length", OdStreamBuf.swigMethodTypes5))
			{
				this.swigDelegate5 = new OdStreamBuf.SwigDelegateOdStreamBuf_5(this.SwigDirectorlength);
			}
			if (this.SwigDerivedClassHasMethod("truncate", OdStreamBuf.swigMethodTypes6))
			{
				this.swigDelegate6 = new OdStreamBuf.SwigDelegateOdStreamBuf_6(this.SwigDirectortruncate);
			}
			if (this.SwigDerivedClassHasMethod("rewind", OdStreamBuf.swigMethodTypes7))
			{
				this.swigDelegate7 = new OdStreamBuf.SwigDelegateOdStreamBuf_7(this.SwigDirectorrewind);
			}
			if (this.SwigDerivedClassHasMethod("seek", OdStreamBuf.swigMethodTypes8))
			{
				this.swigDelegate8 = new OdStreamBuf.SwigDelegateOdStreamBuf_8(this.SwigDirectorseek);
			}
			if (this.SwigDerivedClassHasMethod("getByte", OdStreamBuf.swigMethodTypes9))
			{
				this.swigDelegate9 = new OdStreamBuf.SwigDelegateOdStreamBuf_9(this.SwigDirectorgetByte);
			}
			if (this.SwigDerivedClassHasMethod("getBytes", OdStreamBuf.swigMethodTypes10))
			{
				this.swigDelegate10 = new OdStreamBuf.SwigDelegateOdStreamBuf_10(this.SwigDirectorgetBytes);
			}
			if (this.SwigDerivedClassHasMethod("putByte", OdStreamBuf.swigMethodTypes11))
			{
				this.swigDelegate11 = new OdStreamBuf.SwigDelegateOdStreamBuf_11(this.SwigDirectorputByte);
			}
			if (this.SwigDerivedClassHasMethod("putBytes", OdStreamBuf.swigMethodTypes12))
			{
				this.swigDelegate12 = new OdStreamBuf.SwigDelegateOdStreamBuf_12(this.SwigDirectorputBytes);
			}
			if (this.SwigDerivedClassHasMethod("copyDataTo", OdStreamBuf.swigMethodTypes13))
			{
				this.swigDelegate13 = new OdStreamBuf.SwigDelegateOdStreamBuf_13(this.SwigDirectorcopyDataTo__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("copyDataTo", OdStreamBuf.swigMethodTypes14))
			{
				this.swigDelegate14 = new OdStreamBuf.SwigDelegateOdStreamBuf_14(this.SwigDirectorcopyDataTo__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("copyDataTo", OdStreamBuf.swigMethodTypes15))
			{
				this.swigDelegate15 = new OdStreamBuf.SwigDelegateOdStreamBuf_15(this.SwigDirectorcopyDataTo__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("getShareMode", OdStreamBuf.swigMethodTypes16))
			{
				this.swigDelegate16 = new OdStreamBuf.SwigDelegateOdStreamBuf_16(this.SwigDirectorgetShareMode);
			}
			GlobalsPINVOKE.OdStreamBuf_director_connect(this.swigCPtr, this.swigDelegate0, this.swigDelegate1, this.swigDelegate2, this.swigDelegate3, this.swigDelegate4, this.swigDelegate5, this.swigDelegate6, this.swigDelegate7, this.swigDelegate8, this.swigDelegate9, this.swigDelegate10, this.swigDelegate11, this.swigDelegate12, this.swigDelegate13, this.swigDelegate14, this.swigDelegate15, this.swigDelegate16);
		}

		private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes)
		{
			MethodInfo method = base.GetType().GetMethod(methodName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, methodTypes, null);
			return method.DeclaringType.IsSubclassOf(typeof(OdStreamBuf));
		}

		private IntPtr SwigDirectorqueryX(IntPtr protocolClass)
		{
			return OdRxObject.getCPtr(this.queryX((OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(protocolClass, false))).Handle;
		}

		private IntPtr SwigDirectorisA()
		{
			return OdRxClass.getCPtr(this.isA()).Handle;
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfileName()
		{
			return this.fileName();
		}

		private bool SwigDirectorisEof()
		{
			return this.isEof();
		}

		private ulong SwigDirectortell()
		{
			return this.tell();
		}

		private ulong SwigDirectorlength()
		{
			return this.length();
		}

		private void SwigDirectortruncate()
		{
			this.truncate();
		}

		private void SwigDirectorrewind()
		{
			this.rewind();
		}

		private ulong SwigDirectorseek(long offset, int seekType)
		{
			return this.seek(offset, (FilerSeekType)seekType);
		}

		private byte SwigDirectorgetByte()
		{
			return this.getByte();
		}

		private void SwigDirectorgetBytes(IntPtr buffer, uint numBytes)
		{
			this.getBytes(buffer, numBytes);
		}

		private void SwigDirectorputByte(byte value)
		{
			this.putByte(value);
		}

		private void SwigDirectorputBytes(IntPtr buffer)
		{
			this.putBytes(Teigha.Core.Helpers.UnMarshalbyteFixedArray(buffer));
		}

		private void SwigDirectorcopyDataTo__SWIG_0(IntPtr pDestination, ulong sourceStart, ulong sourceEnd)
		{
			this.copyDataTo((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pDestination, false), sourceStart, sourceEnd);
		}

		private void SwigDirectorcopyDataTo__SWIG_1(IntPtr pDestination, ulong sourceStart)
		{
			this.copyDataTo((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pDestination, false), sourceStart);
		}

		private void SwigDirectorcopyDataTo__SWIG_2(IntPtr pDestination)
		{
			this.copyDataTo((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pDestination, false));
		}

		private uint SwigDirectorgetShareMode()
		{
			return this.getShareMode();
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		private OdStreamBuf.SwigDelegateOdStreamBuf_0 swigDelegate0;

		private OdStreamBuf.SwigDelegateOdStreamBuf_1 swigDelegate1;

		private OdStreamBuf.SwigDelegateOdStreamBuf_2 swigDelegate2;

		private OdStreamBuf.SwigDelegateOdStreamBuf_3 swigDelegate3;

		private OdStreamBuf.SwigDelegateOdStreamBuf_4 swigDelegate4;

		private OdStreamBuf.SwigDelegateOdStreamBuf_5 swigDelegate5;

		private OdStreamBuf.SwigDelegateOdStreamBuf_6 swigDelegate6;

		private OdStreamBuf.SwigDelegateOdStreamBuf_7 swigDelegate7;

		private OdStreamBuf.SwigDelegateOdStreamBuf_8 swigDelegate8;

		private OdStreamBuf.SwigDelegateOdStreamBuf_9 swigDelegate9;

		private OdStreamBuf.SwigDelegateOdStreamBuf_10 swigDelegate10;

		private OdStreamBuf.SwigDelegateOdStreamBuf_11 swigDelegate11;

		private OdStreamBuf.SwigDelegateOdStreamBuf_12 swigDelegate12;

		private OdStreamBuf.SwigDelegateOdStreamBuf_13 swigDelegate13;

		private OdStreamBuf.SwigDelegateOdStreamBuf_14 swigDelegate14;

		private OdStreamBuf.SwigDelegateOdStreamBuf_15 swigDelegate15;

		private OdStreamBuf.SwigDelegateOdStreamBuf_16 swigDelegate16;

		private static Type[] swigMethodTypes0 = new Type[]
		{
			typeof(OdRxClass)
		};

		private static Type[] swigMethodTypes1 = new Type[0];

		private static Type[] swigMethodTypes2 = new Type[0];

		private static Type[] swigMethodTypes3 = new Type[0];

		private static Type[] swigMethodTypes4 = new Type[0];

		private static Type[] swigMethodTypes5 = new Type[0];

		private static Type[] swigMethodTypes6 = new Type[0];

		private static Type[] swigMethodTypes7 = new Type[0];

		private static Type[] swigMethodTypes8 = new Type[]
		{
			typeof(long),
			typeof(FilerSeekType)
		};

		private static Type[] swigMethodTypes9 = new Type[0];

		private static Type[] swigMethodTypes10 = new Type[]
		{
			typeof(IntPtr),
			typeof(uint)
		};

		private static Type[] swigMethodTypes11 = new Type[]
		{
			typeof(byte)
		};

		private static Type[] swigMethodTypes12 = new Type[]
		{
			typeof(byte[])
		};

		private static Type[] swigMethodTypes13 = new Type[]
		{
			typeof(OdStreamBuf),
			typeof(ulong),
			typeof(ulong)
		};

		private static Type[] swigMethodTypes14 = new Type[]
		{
			typeof(OdStreamBuf),
			typeof(ulong)
		};

		private static Type[] swigMethodTypes15 = new Type[]
		{
			typeof(OdStreamBuf)
		};

		private static Type[] swigMethodTypes16 = new Type[0];

		public delegate IntPtr SwigDelegateOdStreamBuf_0(IntPtr protocolClass);

		public delegate IntPtr SwigDelegateOdStreamBuf_1();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdStreamBuf_2();

		public delegate bool SwigDelegateOdStreamBuf_3();

		public delegate ulong SwigDelegateOdStreamBuf_4();

		public delegate ulong SwigDelegateOdStreamBuf_5();

		public delegate void SwigDelegateOdStreamBuf_6();

		public delegate void SwigDelegateOdStreamBuf_7();

		public delegate ulong SwigDelegateOdStreamBuf_8(long offset, int seekType);

		public delegate byte SwigDelegateOdStreamBuf_9();

		public delegate void SwigDelegateOdStreamBuf_10(IntPtr buffer, uint numBytes);

		public delegate void SwigDelegateOdStreamBuf_11(byte value);

		public delegate void SwigDelegateOdStreamBuf_12(IntPtr buffer);

		public delegate void SwigDelegateOdStreamBuf_13(IntPtr pDestination, ulong sourceStart, ulong sourceEnd);

		public delegate void SwigDelegateOdStreamBuf_14(IntPtr pDestination, ulong sourceStart);

		public delegate void SwigDelegateOdStreamBuf_15(IntPtr pDestination);

		public delegate uint SwigDelegateOdStreamBuf_16();
	}
}
